import {request} from 'umi'

// 获取左侧列表
export let getList=()=>{
    return request('https://api.blog.wipi.tech/api/Knowledge',{
        method:'GET'
    })
}

// 获取右侧文章分类
export let getClassify=()=>{
    return request('https://api.blog.wipi.tech/api/category',{
        methods:'GET'
    })
}

// 获取右侧推荐阅读
export let getArticle=()=>{
    return request('https://api.blog.wipi.tech/api/article/recommend',{
        methods:'GET'
    })
}

// 左侧列表详情
export let getLeftDetail=(id:string)=>{
    return request(`https://api.blog.wipi.tech/api/Knowledge/${id}`,{
        methods:'GET'
    })
}